{extend name='common/_container'}
{block name="content"}
<div class="ibox float-e-margins">
<input type="hidden" name='lockcard_id' id='lockcard_id' value="{$info.lockcard_id}" />
	<div class="ibox-content">
		<div class="form-horizontal" id="CodeInfoForm">
			<div class="row">
				<div class="col-sm-12">
				<!-- form start -->
					<div class="form-group">
						<label class="col-sm-2 control-label">过期时间：</label>
						<div class="col-sm-9">
							<input type="text" value="{if condition="$info.lockcard_endtime neq ''"}{$info.lockcard_endtime|date='Y-m-d H:i:s'}{else/}{:date('Y-m-d H:i:s')}{/if}" name="lockcard_endtime"  placeholder="请输入过期时间" class="form-control" id="lockcard_endtime">
						</div>
					</div>
					<div class="form-group layui-form">
						<label class="col-sm-2 control-label">发卡状态：</label>
						<div class="col-sm-9">
							<?php if(!isset($info['batchstatus'])){ $info['batchstatus'] = 1; }; ?>
							<input name="batchstatus" value="1" type="radio" {if condition="$info.batchstatus eq '1'"}checked{/if} title="待发">
							<input name="batchstatus" value="2" type="radio" {if condition="$info.batchstatus eq '2'"}checked{/if} title="已发">
							<input name="batchstatus" value="0" type="radio" {if condition="$info.batchstatus eq '0'"}checked{/if} title="读出">
							<span class="help-block m-b-none">修改过期时间后，只有状态设置为待发系统才会将时间更新到设备上去</span>
						</div>
					</div>
				<!-- form end -->
				</div>
			</div>
			<div class="hr-line-dashed"></div>
			<div class="row btn-group-m-t">
				<div class="col-sm-10">
					<button type="button" class="btn btn-primary" onclick="CodeInfoDlg.batchupcard()" id="ensure">
						<i class="fa fa-check"></i>&nbsp;确认提交
					</button>
					<button type="button" class="btn btn-danger" onclick="CodeInfoDlg.close()" id="cancel">
						<i class="fa fa-eraser"></i>&nbsp;取消
					</button>
				</div>
			</div>
		</div>
	</div>
</div>
<script src="__PUBLIC__/static/js/admin/LockCard.js?t=<?php echo rand(1000,9999)?>" charset="utf-8"></script>
<script src="__PUBLIC__/static/js/upload.js" charset="utf-8"></script>
<script src="__PUBLIC__/static/js/plugins/layui/layui.js?t=1498856285724" charset="utf-8"></script>
<script src='__PUBLIC__/static/js/plugins/paixu/jquery-migrate-1.1.1.js'></script>
<script src='__PUBLIC__/static/js/plugins/paixu/jquery.dragsort-0.5.1.min.js'></script>
<script>
layui.config({dir: '__PUBLIC__/static/js/plugins/layui/'});
	layui.use(['form'], function () {
	window.form = layui.form();
});
laydate.render({elem: '#lockcard_endtime',type: 'datetime',trigger:'click'});
laydate.render({elem: '#lockcard_createtime',type: 'datetime',trigger:'click'});
</script>


{/block}
